package com.zbkj.common.model.community;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 种草订单表
 * </p>
 *
 * @author keNan
 * @since 2025-06-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_community_order")
@ApiModel(value="CommunityOrder对象", description="种草订单表")
public class CommunityOrder implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "种草官用户id")
    private Integer publisherUid;

    @ApiModelProperty(value = "购买用户id")
    private Integer buyerUid;

    @ApiModelProperty(value = "购买用户名称")
    private String buyerName;

    @ApiModelProperty(value = "购买用户头像")
    private String buyerAvatar;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal payPrice;

    @ApiModelProperty(value = "订单支付时间")
    private Date payTime;

    @ApiModelProperty(value = "返佣金额")
    private BigDecimal rebateAmount;

    @ApiModelProperty(value = "返佣比例")
    private Integer rebatePercent;

    @ApiModelProperty(value = "冻结类型")
    private String freezeType;

    @ApiModelProperty(value = "冻结时长")
    private Integer freezeDay;

    @ApiModelProperty(value = "商品id")
    private Integer productId;

    @ApiModelProperty(value = "商品图片")
    private String productImage;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "商品sku")
    private String productSku;

    @ApiModelProperty(value = "购买数量")
    private Integer buyNum;

    @ApiModelProperty(value = "笔记id")
    private Integer communityNoteId;

    @ApiModelProperty(value = "笔记标题")
    private String communityNoteTitle;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
